﻿using System;
using System.Collections.Generic;
using System.Text;

namespace X3dTest
{
    public class TimeSensor:X3DObject
    {
        private string CycleInterval;

        public string cycleInterval
        {
            get { return CycleInterval; }
            set { CycleInterval = value; }
        }
        private string CycleTime;

        public string cycleTime
        {
            get { return CycleTime; }
            set { CycleTime = value; }
        }
        private string ElapsedTime;

        public string elapsedTime
        {
            get { return ElapsedTime; }
            set { ElapsedTime = value; }
        }
        private string Enabled;

        public string enabled
        {
            get { return Enabled; }
            set { Enabled = value; }
        }
        private string Fraction_changed;

        public string fraction_changed
        {
            get { return Fraction_changed; }
            set { Fraction_changed = value; }
        }
        private string IsActive;

        public string isActive
        {
            get { return IsActive; }
            set { IsActive = value; }
        }
        private string IsPaused;

        public string isPaused
        {
            get { return IsPaused; }
            set { IsPaused = value; }
        }
        private string Loop;

        public string loop
        {
            get { return Loop; }
            set { Loop = value; }
        }
        private string PauseTime;

        public string pauseTime
        {
            get { return PauseTime; }
            set { PauseTime = value; }
        }
        private string ResumeTime;

        public string resumeTime
        {
            get { return ResumeTime; }
            set { ResumeTime = value; }
        }
        private string StartTime;

        public string startTime
        {
            get { return StartTime; }
            set { StartTime = value; }
        }
        private string StopTime;

        public string stopTime
        {
            get { return StopTime; }
            set { StopTime = value; }
        }
        private string Time;

        public string time
        {
            get { return Time; }
            set { Time = value; }
        }

        public TimeSensor():base()
        {
            cycleInterval="1";
            cycleTime="";
            elapsedTime="";
            enabled="true";
            fraction_changed="";
            isActive="";
            isPaused="";
            loop="false";
            pauseTime="0";
            resumeTime="0";
            startTime="0";
            stopTime="0";
            time = "";
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param Name="DEF">节点命名</param>
        /// <param Name="cycleInterval">时间长度</param>
        /// <param Name="loop">是否循环"true"||"false"</param>
        public TimeSensor(string DEF, string cycleInterval, string loop):base()
        {
            this.DEF = DEF;
            this.cycleInterval = cycleInterval;
            this.loop = loop;
        }
    }
}
